package com.zyn.rsgl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sign_statistics")
public class SignStatistics {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 统计月份
     */
    @TableField("month")
    private String month;

    /**
     * 上班打卡次数
     */
    @TableField("work_punches")
    private Integer workPunches;

    /**
     * 下班打卡次数
     */
    @TableField("off_punches")
    private Integer offPunches;

    /**
     * 总打卡次数
     */
    @TableField("total_punches")
    private Integer totalPunches;

    /**
     * 统计时间
     */
    @TableField("statistic_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime statisticTime;
}